package com.huatai.common.config;

import com.huatai.common.interceptor.FeignRequestInterceptor;
import feign.RequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.context.request.RequestContextListener;

/**
 * @program: ganghua
 * @description: feign配置
 * @author: songxiude
 * @create: 2024-11-26 10:46
 **/
@Configuration
public class FeignAutoConfiguration {

	@Bean
	public RequestInterceptor requestInterceptor()
	{
		return new FeignRequestInterceptor();
	}

//	@Bean
//	public RequestContextListener requestContextListener(){
//		return new RequestContextListener();
//	}
}
